package edu.cuit.canary.selection;

public class SwitchDemo3 {

    public static void main(String[] args) {
        //int day = (int)(Math.random() * 7);
        int day = 1;
        switch(day) {
            case 0, 7 -> System.out.println("星期天");
            case 1 -> System.out.println("星期一");
            default ->
                System.out.println("非法值");
        }
    }

}